Fix window button updates in split headers
authorMatthias Clasen <mclasen@redhat.com>
Tue, 14 Apr 2015 21:05:34 +0000 (17:05 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 14 Apr 2015 21:05:34 +0000 (17:05 -0400)
commitc8d6231c3c55dc9f357a2436cbc89bef23163d57
treed4a9835e1b0b0c42c653f2a1971c2114da3ef999
parentb53abebaea14d57dc428cc0914d42f849a072e20
Fix window button updates in split headers

We were only updating window buttons when the headerbar was
a direct child of the window. That is not the case in more
complicated situations, such as the split headers in gedit
or polari. To fix such cases, make the headerbar itself listen
for state changes on its toplevel.

https://bugzilla.gnome.org/show_bug.cgi?id=747805
gtk/gtkheaderbar.c